<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding:10px">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td class="bg_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><img src="images/icon-48-menumgr.png" width="48" height="48" /></td>
                <td width="45%" class="mana_title"> Info vote</td>
                <td width="50%" align="center">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    
                    <tr><!--
                      <td width="73%">&nbsp;</td>
                      <td class="icon_style"><a href="#" onclick="return doSaveJobs('index.php?progid=21&info=sua','Vui lòng chọn một bản ghi từ danh sách bên dưới')" ><img src="images/icon-32-edit.png" width="32" height="32"  border="0"/><br />
                      Xem</a></td>
                         -->
                     <td class="icon_style"><a href="#" onclick="return doSaveJobs('index.php?progid=21&info=xoa','Vui lòng chọn một bản ghi từ danh sách bên dưới')" ><img src="images/icon-32-delete.png" width="32" height="32"  border="0"/><br />
                      X&oacute;a</a></td>
                      <td class="icon_style"><a href="#"><img src="images/icon-32-help.png" width="32" height="32"  border="0"/><br />
                      Tr&#7907; gi&uacute;p</a></td>
                    </tr>
                 
                  </table>
                  </td>
              </tr>
            </table></td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="7"></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td   width="6" height="6"><img src="images/j_crn_tl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_t_med.png" width="100%"></td>
            <td  width="6" height="6" ><img src="images/j_crn_tr_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="1" background="images/dot.png"></td>
            <td bgcolor="#fbfbfb"><form id="frmdanhsach" name="frmdanhsach" method="post" action="">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td style="padding:7px"><table width="100%" border="1" cellspacing="0" cellpadding="0" class="list_border">
                    <tr>
                      <td width="5%" class="list_title">#</td>
                      <td width="6%" class="list_title"> <input type="checkbox" name="chkAll" id="chkAll"  value="" onclick="CheckUncheckAll();" /></td>
                      <td width="10%" class="list_title">Họ và tên </td>
                      <td width="10%" class="list_title">Email</td>
                      <td width="18%" class="list_title">Địa chỉ</td>
                      <td width="12%" class="list_title">Số điện thoại</td>
                      <td width="14%" class="list_title">Ngày gửi</td>
                      <td width="15%" class="list_title">Sản phẩm</td>
                       <td width="15%" class="list_title">Bình chọn</td>
                    </tr>
                    <? 
	$qr12=mysql_query("select * from tbinfopoll   order by id   desc");
	$n_record=mysql_num_rows($qr12); 
	$p=$_SESSION['page'];
	$n=$_GET['n'];
	include 'phantrang.php';
	if ($n!='all'){$qr1=mysql_query("select * from tbinfopoll    order by id desc limit $s,$p"); }
	else{$qr1=mysql_query("select * from tbinfopoll      order by id desc"); }
	$i=0;
	while($row=mysql_fetch_array($qr1)) 
	{ $i=$i+1;
	$contact_phanloai=$row["contact_phanloai"];
	$idsp=$row[idsp];
	$sql=mysql_query("select *from tbsanpham where sanpham_id='$idsp'");
	$rowsp=mysql_fetch_array($sql);
	$tieudesp=$rowsp['sanpham_tieude'];
	
	$idpoll=$row[idpoll];
	//echo "select *from answer where aid='$idpoll'";
	$sqlp=mysql_query("select *from answer where aid='$idpoll'");
	$rowspoll=mysql_fetch_array($sqlp);
	$tenpoll=$rowspoll['atitle'];
  ?>
                    <tr  onmouseover="this.bgColor='#ffffdd'" onmouseout="this.bgColor=''" >
                      <td align="center" style="height:30"><?=$i?></td>
                      <td align="center">
                      <input type="checkbox" name="industry<?=$i?>" id="industry<?=$i?>"  value="<?=$row[id]?>"/></td>
                      <td class="link-edit"><a href="index.php?progid=21&info=sua&id=<?=$row[id]?>"><?=$row[ten]?></a></td>
                      <td><?=$row[email]?></td>
                      <td align="center" class="link-edit"> <?=$row[diachi]?></td>
                      <td align="center" class="link-edit"><?=$row[phone]?></td>
                      <td><?=$row[ngay]?></td>
                      <td align="center"><a target="_blank" href="<?php echo $url_main_site.$rowsp[sanpham_alias]."-".$rowsp[sanpham_id]?>.html"><?=$tieudesp?></a></td>
                      <td align="center"><?php echo $tenpoll?></td>
                    </tr>
<? }?>
                  </table></td>
                </tr>
                <tr>
                  <td><? view_page('index.php?progid=21'); ?></td>
                </tr>
              </table>
              <input type="hidden" name="count" id="count" value="<?=$i?>"  />
                        </form>
            </td>
            <td width="1" background="images/dot.png"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="6" height="6" ><img src="images/j_crn_bl_med.png" width="6" height="6" /></td>
            <td  background="images/j_crn_b_med.png" width="100%"></td>
            <td width="6" height="6" ><img src="images/j_crn_br_med.png" width="6" height="6" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
